﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Site.Master" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="KMT.Pages.Customer.Register" %>
<%@ Import Namespace="Core.Library" %>
<%@ Import Namespace="DataObject" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMain" runat="server">
<div class="col-main">
    <div class="account-create">
        <div class="page-title">
            <h1>Tài Khoản Mới</h1>            
        </div>

        <asp:Literal ID="ltMessage" runat="server"/>

        <div id="form-validate">
        <div class="fieldset">            
            <h2 class="legend">Thông tin cá nhân</h2>
            <ul class="form-list">
                <li class="fields">
                    <div class="customer-name">
                        <div class="field name-firstname">
                            <label class="required" for="firstname"><em>*</em>Tên đầy đủ</label>
                            <div class="input-box">                                
                                <asp:TextBox ID="txtFullName" CssClass="input-text required-entry" runat="server" />
                                <asp:RequiredFieldValidator ID="rfvFullname" ControlToValidate="txtFullname" runat="server"/>
                            </div>
                        </div>
                        <div class="field name-lastname">
                            <label class="required" for="lastname"><em>*</em>Số điện thoại</label>
                            <div class="input-box">                                
                                <asp:TextBox ID="txtMobile" CssClass="input-text" runat="server" />                                <asp:RequiredFieldValidator ID="rfvPhone" ControlToValidate="txtMobile" runat="server"/>
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <label class="required" for="email_address">
                        <em>*</em>Hòm thư</label>
                    <div class="input-box">                        
                        <asp:TextBox ID="txtEmail" CssClass="input-text" runat="server" />
                        <asp:RequiredFieldValidator ID="rfvEmail" ControlToValidate="txtEmail" runat="server"/>
                        <asp:RegularExpressionValidator ID="revEmail" ControlToValidate="txtEmail" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" runat="server" />
                    </div>
                </li>
                <li>
                    <label class="required" for="email_address">Địa chỉ</label>
                    <div class="input-box">                        
                        <asp:TextBox ID="txtAddress" TextMode="MultiLine" Width="540" Height="50" CssClass="input-text" runat="server" />
                        <asp:RequiredFieldValidator ID="rfvAddress" ControlToValidate="txtAddress" runat="server"/>                        
                    </div>
                </li>
                <li class="control">
                    <div class="input-box">                        
                        <asp:CheckBox ID="cbNewsletter" CssClass="checkbox" runat="server" />
                    </div>
                    <label for="is_subscribed">Đăng ký nhận tin nhắn</label>
                </li>
            </ul>
        </div>
        <div class="fieldset">
            <h2 class="legend">Thông tin đăng nhập</h2>
            <ul class="form-list">
                <li class="fields">
                    <div class="field">
                        <label class="required" for="password"><em>*</em>Mật khẩu</label>
                        <div class="input-box">                            
                            <asp:TextBox ID="txtPassword" TextMode="Password" CssClass="input-text" runat="server" />
                            <asp:RequiredFieldValidator ID="rfvRPassword" ControlToValidate="txtPassword" runat="server"/>
                        </div>
                    </div>
                    <div class="field">
                        <label class="required" for="confirmation"><em>*</em>Nhập lại mật khẩu</label>
                        <div class="input-box">
                            <asp:TextBox ID="txtRePassword" TextMode="Password" CssClass="input-text" runat="server" />
                            <asp:RequiredFieldValidator ID="rfvRRePassword" ControlToValidate="txtRePassword" runat="server"/>
                        </div>
                    </div>

                    <div class="field">
                        <label class="required" for="confirmation"><em>*</em>Mã xác nhận</label>
                        <div class="input-box">
                            <img src="<%= Constants.BaseUrl %>Controls/Common/RandomCaptCha.aspx" height="34" alt=""/>
                            <asp:TextBox ID="txtCaptchaControl" CssClass="input-text" Width="50" runat="server" />                
                            <asp:RequiredFieldValidator ID="rfvCaptchaControl" ControlToValidate="txtCaptchaControl" runat="server"/>            
                        </div>
                    </div>                    
                </li>
            </ul>       
        </div>
        <div class="buttons-set">
            <p class="required">* Thông tin bắt buộc</p>
            <p class="back-link"><a class="back-link" href="<%= UrlHelpers.LoginRegister %>"><small>« </small>Quay lại</a></p>
            <asp:Button ID="btnRegister" Text="Đăng ký" CssClass="button" OnClick="BtnRegister" runat="server" />            
            <asp:Button ID="btnReset" Text="Làm lại" CssClass="button" OnClick="BtnReset" runat="server" />            
        </div>
        </div>        
    </div>
</div>
<div class="clear"></div>
</asp:Content>
